#!/usr/bin/env python2.6
# vim:ft=python:


import os
import sys

if '/srv/custom' not in sys.path:
    sys.path.append('/srv/custom')

os.environ['DJANGO_SETTINGS_MODULE'] = 'elremate.settings'

import django.core.handlers.wsgi

_application = django.core.handlers.wsgi.WSGIHandler()

def application(environ, start_response):
    environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
    return _application(environ, start_response)
